@extends('layout/header')
@section('headcss')
@stop
@section('content')
    <div id="content">
        <div class="container">
            <div class="mb"><a href="/">首页</a><span>></span><span class="red">综合资讯</span></div>
            <ul class="news-tab clearfix">
                <li @if($select_status == 0) class="active" @endif><a href="/news/n0">全部</a></li>
                <li @if($select_status == 1) class="active" @endif><a href="/news/n1">防拐防骗</a></li>
                <li @if($select_status == 2) class="active" @endif><a href="/news/n2">寻人方法</a></li>
                <li @if($select_status == 3) class="active" @endif><a href="/news/n3">政策法规</a></li>
                <li @if($select_status == 4) class="active" @endif><a href="/news/n4">成功案例</a></li>
            </ul>
            @if(!empty($adarray))
            <a href="{{$adarray['oneurls']}}"><img src="{{URL::asset('img/'.$adarray['one'])}}" width="1200px"  height="109" alt="{{$adarray['onetitles']}}"/></a>
            @endif
            <div class="clearfix vip-container news-list">
                <div class="fl">
                    <div class="title-5 clearfix">
                        <div class="fl">全部资讯</div>
                        {{--<div class="fr"> <a href="#">更新<span class="red">9条</span>新闻，点击刷新<img src="./images/sx.jpg" alt=""/></a></div>--}}
                    </div>
                    <ul>
                        <div id="contentbox">
                        @if(!empty($getdefaultdata))
                            @foreach($getdefaultdata as $d)
                        <li>
                            <a href="/news/{{$d->id}}.html">
                                <h1>{{$d->titles}}</h1>
                                <p style="color:#666">{{mb_substr(strip_tags($d->contents), 0, 90, 'utf8').'...'}}</p>
                                <p style="color:#033165">综合资讯   @if($d->types == 1) 防拐防骗 @elseif($d->types==2) 寻人方法 @elseif($d->types == 3) 政策法规 @elseif($d->types == 4)其他 @endif </p><span>{{date('Y-m-d H:i:s',$d->publish_time)}}</span>
                            </a>
                        </li>
                            @endforeach
                            @endif
                        </div>
                    </ul>
                    <div class="page container center" style="text-algin:center" >
                        <ul class="clearfix" >
                            @if(!empty($getdefaultdata))
                                {!!  $getdefaultdata->links() !!}
                            @endif
                        </ul>
                    </div>
                </div>
                <div class="fr" style="margin-top: 60px">@if(!empty($adarray))<a href="{{$adarray['twourls']}}"><img src="{{URL::asset('img/'.$adarray['two'])}}" width="390px" height="243px" alt=""/></a>@endif
                    <h2>热门推荐</h2>
                    <div class="ll">
                        @if(!empty($hot))
                            @foreach($hot as $h)
                        <dl>
                            <dd> <a href="/news/{{$h->id}}.html">{{$h->titles}}</a></dd>
                        </dl>
                            @endforeach
                        @endif
                    </div>@if(!empty($adarray)) <a href="{{$adarray['threeurls']}}"><img src="{{URL::asset('img/'.$adarray['three'])}}"  width="390px" height="243px" alt=""/></a>@endif
                </div>
            </div>
        </div>
    </div>
    @stop
@section('js')
    <script src="{{URL::asset('js/news.js')}}"></script>
    @stop